package pers.cz.chat.utils;

import pers.cz.chat.constants.Commands;

/**
 * @program: Jef-Chat
 * @description:
 * @author: Cheng Zhi
 * @create: 2025-01-30 22:16
 **/
public class BaseUtils {

    /**
     * 判断是否为指令
     * @param content
     * @return
     */
    public static boolean isCommand(String content) {

        for (Commands commands : Commands.values()) {
            if (content.startsWith(commands.getCommand())) {
                return true;
            }
        }
        return false;
    }
}
